import request from '@/utils/requestAdmin'

export function getCategoryList(params) {
  return request.get('/category/list', { params })
}
export function addCategory(data) {
  return request.post('/category/add', data)
}
export function updateCategory(data) {
  return request.post('/category/update', data)
}
export function deleteCategory(id) {
  return request.delete(`/category/delete/${id}`)
} 